#ifndef REDMINE_CONTROLS_HPP
#define REDMINE_CONTROLS_HPP

#include <imgui/imgui.h>
#include <stdint.h>
#include <vector>
#include <functional>
#include "sql/types.hpp"

enum TagEditOperation
{
    TagEditOperation_Clear,
    TagEditOperation_Add,
    TagEditOperation_Remove,
};

namespace ImGui {
    // 活动选择
    bool SelectRedMineActivity(int *current);
    // 问题选择
    bool SelectRedMineIssue(int *current);

    // 标签集合编辑
    bool EditTags(std::vector<Tag> &tags, const std::function<bool(TagEditOperation op, const Tag &data)> &edit_callback = {});
}

#endif /* REDMINE_CONTROLS_HPP */
